package team.se.tms.exception;

import team.se.tms.enums.ResultEnum;

/**
 * 参数异常
 *
 * @author winkyle
 * @date 2018/11/15
 */
public class ParamException extends CustomException {
    /**
     * 参数异常构造器
     *
     * @create on 2018/12/26 by johnny
     */
    public ParamException() {
        super(ResultEnum.PARAMETER_WRONG.getCode(), ResultEnum.PARAMETER_WRONG.getMsg()+"：参数错误");
    }

    /**
     * 参数异常构造器
     *
     * @param msg 参数错误具体信息
     * @create on 2018/11/15 by winkyle
     */
    public ParamException(String msg) {
        super(ResultEnum.PARAMETER_WRONG.getCode(), ResultEnum.PARAMETER_WRONG.getMsg()+"："+msg);
    }
}
